<?php

namespace App\Models;

use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;

class Admin extends Model
{
    //
    protected $table = 'admin';
    public function index()
    {

    }

    public function adminGet($name)
    {
        $list = $this->where('username',$name)->get();
        return $list;
    }
}
